package com.cqjybigscreen.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cqjybigscreen.mapper.AdsCqwlOrderDetailsMapper;
import com.cqjybigscreen.pojo.entity.AdsCqwlOrderDetails;
import com.cqjybigscreen.pojo.vo.BoxVolumeVO;
import com.cqjybigscreen.service.AdsCqwlOrderDetailsService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 * 订单明细表 服务实现类
 * </p>
 *
 * @author RaoChang
 */
@Service
@AllArgsConstructor
public class AdsCqwlOrderDetailsServiceImpl extends ServiceImpl<AdsCqwlOrderDetailsMapper, AdsCqwlOrderDetails> implements AdsCqwlOrderDetailsService {
    private final AdsCqwlOrderDetailsMapper adsCqwlOrderDetailsMapper;
    /**
     * 根据目的地-获取订单详情
     *
     * @param destinationStation 目的地
     * @return List<BoxVolumeVO>
     */
    @Override
    public List<BoxVolumeVO> getOrderDetailsByDestination(String destinationStation) {
        return adsCqwlOrderDetailsMapper.getOrderDetailsByDestination(destinationStation);
    }
}
